# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-oneplus-lemonade
pkgdesc="OnePlus 9"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-postmarketos-qcom-sm8350
	mkbootimg
	postmarketos-base
	soc-qcom-sm8350
"
makedepends="
	devicepkg-dev
"
source="
	deviceinfo
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Modem, WiFi, and GPU Firmware"
	depends="firmware-oneplus-lemonade"
	mkdir "$subpkgdir"
}

sha512sums="
5bbecb0e7e81144d2bc243f6fc61932686387d0d42301618c961ef489ffdc1b0ddcfce9d82c3896ab9bdaacf92c4ae975f97d9f9fc1a3ac742acefbc1d838ec9  deviceinfo
"
